package com.ali.common;

public class StringUtil {
    public static String getString(Object object) {
        if (object == null) {
            return "";
        }
        return String.valueOf(object);
    }

    public static int getInteger(Object object) {
        if (object == null) {
            return 0;
        }
        return Integer.parseInt(String.valueOf(object));
    }
}
